home *** CD-ROM | disk | FTP | other *** search
/ 1st Multimedia Mac Shareware / Multimedia Shareware CD-ROM - BetaCorp.iso / Music⁄Sound / Libraries / Sound Studio 3.0 / Sound Studio 3.0 / background_4138.xml < prev    next >
Encoding:
Extensible Markup Language  |  1992-08-10  |  12.8 KB  |  388 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>4138</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_6252.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_5038.css" />
  11.     <part>
  12.         <id>18</id>
  13.         <type>button</type>
  14.         <visible> <true /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>0</left>
  23.             <top>3</top>
  24.             <right>34</right>
  25.             <bottom>33</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <showName> <false /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <true /> </autoHighlight>
  31.         <sharedHighlight> <true /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>1011</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Chicago</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name>Home</name>
  40.         <script>on mouseUp
  41. go home
  42. end mouseUp
  43. </script>
  44.     </part>
  45.     <part>
  46.         <id>20</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>279</left>
  57.             <top>2</top>
  58.             <right>313</right>
  59.             <bottom>35</bottom>
  60.         </rect>
  61.         <style>transparent</style>
  62.         <showName> <false /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <true /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>14767</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name>New Button</name>
  74.         <script>on mouseUp
  75. visual dissolve very fast
  76. go to background information
  77. end mouseUp
  78. </script>
  79.     </part>
  80.     <part>
  81.         <id>21</id>
  82.         <type>field</type>
  83.         <visible> <true /> </visible>
  84.         <dontWrap> <false /> </dontWrap>
  85.         <dontSearch> <false /> </dontSearch>
  86.         <sharedText> <false /> </sharedText>
  87.         <fixedLineHeight> <true /> </fixedLineHeight>
  88.         <autoTab> <false /> </autoTab>
  89.         <lockText> <false /> </lockText>
  90.         <rect>
  91.             <left>335</left>
  92.             <top>51</top>
  93.             <right>507</right>
  94.             <bottom>180</bottom>
  95.         </rect>
  96.         <style>scrolling</style>
  97.         <autoSelect> <false /> </autoSelect>
  98.         <showLines> <true /> </showLines>
  99.         <wideMargins> <false /> </wideMargins>
  100.         <multipleLines> <false /> </multipleLines>
  101.         <reservedFamily> 0 </reservedFamily>
  102.         <titleWidth>0</titleWidth>
  103.         <icon>0</icon>
  104.         <textAlign>left</textAlign>
  105.         <font>Geneva</font>
  106.         <textSize>9</textSize>
  107.         <textStyle>plain</textStyle>
  108.         <textHeight>12</textHeight>
  109.         <name>PlayList</name>
  110.         <script></script>
  111.     </part>
  112.     <part>
  113.         <id>22</id>
  114.         <type>button</type>
  115.         <visible> <true /> </visible>
  116.         <reserved5> 0 </reserved5>
  117.         <reserved4> 0 </reserved4>
  118.         <reserved3> 0 </reserved3>
  119.         <reserved2> 0 </reserved2>
  120.         <reserved1> 0 </reserved1>
  121.         <enabled> <true /> </enabled>
  122.         <rect>
  123.             <left>372</left>
  124.             <top>182</top>
  125.             <right>483</right>
  126.             <bottom>204</bottom>
  127.         </rect>
  128.         <style>roundrect</style>
  129.         <showName> <true /> </showName>
  130.         <highlight> <false /> </highlight>
  131.         <autoHighlight> <true /> </autoHighlight>
  132.         <sharedHighlight> <true /> </sharedHighlight>
  133.         <family>0</family>
  134.         <titleWidth>0</titleWidth>
  135.         <icon>0</icon>
  136.         <textAlign>center</textAlign>
  137.         <font>Chicago</font>
  138.         <textSize>12</textSize>
  139.         <textStyle>plain</textStyle>
  140.         <name>Record</name>
  141.         <script>on mouseUp
  142. global Record
  143. if (the short name of the target) = "Record" then
  144. set the name of target to "End Recording"
  145. if the optionkey is not down then
  146. put "" into field PlayList
  147. end if
  148. put 1 into Record
  149. else
  150. set the name of target to "Record"
  151. put empty into Record
  152. end if
  153.  
  154. end mouseUp
  155. </script>
  156.     </part>
  157.     <part>
  158.         <id>23</id>
  159.         <type>button</type>
  160.         <visible> <true /> </visible>
  161.         <reserved5> 0 </reserved5>
  162.         <reserved4> 0 </reserved4>
  163.         <reserved3> 0 </reserved3>
  164.         <reserved2> 0 </reserved2>
  165.         <reserved1> 0 </reserved1>
  166.         <enabled> <true /> </enabled>
  167.         <rect>
  168.             <left>372</left>
  169.             <top>206</top>
  170.             <right>486</right>
  171.             <bottom>228</bottom>
  172.         </rect>
  173.         <style>roundrect</style>
  174.         <showName> <true /> </showName>
  175.         <highlight> <false /> </highlight>
  176.         <autoHighlight> <true /> </autoHighlight>
  177.         <sharedHighlight> <true /> </sharedHighlight>
  178.         <family>0</family>
  179.         <titleWidth>0</titleWidth>
  180.         <icon>0</icon>
  181.         <textAlign>center</textAlign>
  182.         <font>Chicago</font>
  183.         <textSize>12</textSize>
  184.         <textStyle>plain</textStyle>
  185.         <name>Play Recording</name>
  186.         <script>on mouseUp
  187. if field PlayList is empty then
  188. answer "there ain't nothin' to play, idiot"
  189. else
  190. put 1 into x
  191. put 0 into thecowscomehome
  192. repeat until thecowscomehome = 1
  193. if line x of field PlayList is not empty then
  194. do line x of field PlayList
  195. repeat until the sound is "done"
  196. end repeat
  197. put x+1 into x
  198. else
  199. exit repeat
  200. end if
  201. end repeat
  202. end if
  203. end mouseUp
  204. </script>
  205.     </part>
  206.     <part>
  207.         <id>24</id>
  208.         <type>button</type>
  209.         <visible> <true /> </visible>
  210.         <reserved5> 0 </reserved5>
  211.         <reserved4> 0 </reserved4>
  212.         <reserved3> 0 </reserved3>
  213.         <reserved2> 0 </reserved2>
  214.         <reserved1> 0 </reserved1>
  215.         <enabled> <true /> </enabled>
  216.         <rect>
  217.             <left>370</left>
  218.             <top>2</top>
  219.             <right>470</right>
  220.             <bottom>24</bottom>
  221.         </rect>
  222.         <style>roundrect</style>
  223.         <showName> <true /> </showName>
  224.         <highlight> <false /> </highlight>
  225.         <autoHighlight> <true /> </autoHighlight>
  226.         <sharedHighlight> <true /> </sharedHighlight>
  227.         <family>0</family>
  228.         <titleWidth>0</titleWidth>
  229.         <icon>0</icon>
  230.         <textAlign>center</textAlign>
  231.         <font>Chicago</font>
  232.         <textSize>12</textSize>
  233.         <textStyle>plain</textStyle>
  234.         <name>Save PlayList</name>
  235.         <script>on mouseUp
  236. put NewFileName("Save PlayList As?","") into FileName
  237. if FileName is empty then exit mouseup
  238. open file FileName
  239. write field PlayList to file FileName
  240. close file FileName
  241. end mouseUp
  242. </script>
  243.     </part>
  244.     <part>
  245.         <id>25</id>
  246.         <type>button</type>
  247.         <visible> <true /> </visible>
  248.         <reserved5> 0 </reserved5>
  249.         <reserved4> 0 </reserved4>
  250.         <reserved3> 0 </reserved3>
  251.         <reserved2> 0 </reserved2>
  252.         <reserved1> 0 </reserved1>
  253.         <enabled> <true /> </enabled>
  254.         <rect>
  255.             <left>371</left>
  256.             <top>26</top>
  257.             <right>471</right>
  258.             <bottom>48</bottom>
  259.         </rect>
  260.         <style>roundrect</style>
  261.         <showName> <true /> </showName>
  262.         <highlight> <false /> </highlight>
  263.         <autoHighlight> <true /> </autoHighlight>
  264.         <sharedHighlight> <true /> </sharedHighlight>
  265.         <family>0</family>
  266.         <titleWidth>0</titleWidth>
  267.         <icon>0</icon>
  268.         <textAlign>center</textAlign>
  269.         <font>Chicago</font>
  270.         <textSize>12</textSize>
  271.         <textStyle>plain</textStyle>
  272.         <name>Load PlayList</name>
  273.         <script>on mouseUp
  274. put filename("TEXT") into ListFile
  275. if ListFile is empty then exit mouseup
  276. open file ListFile
  277. put 0 into thecowscomehome
  278. put "" into field PlayList
  279. repeat until thecowscomehome=1
  280. read from file Listfile until return
  281. if it is empty then
  282. close file ListFile
  283. exit mouseup
  284. else
  285. put it after field PlayList
  286. end if
  287. end repeat
  288. close file ListFile
  289. end mouseUp
  290. </script>
  291.     </part>
  292.     <part>
  293.         <id>28</id>
  294.         <type>button</type>
  295.         <visible> <true /> </visible>
  296.         <reserved5> 0 </reserved5>
  297.         <reserved4> 0 </reserved4>
  298.         <reserved3> 0 </reserved3>
  299.         <reserved2> 0 </reserved2>
  300.         <reserved1> 0 </reserved1>
  301.         <enabled> <true /> </enabled>
  302.         <rect>
  303.             <left>392</left>
  304.             <top>291</top>
  305.             <right>474</right>
  306.             <bottom>310</bottom>
  307.         </rect>
  308.         <style>shadow</style>
  309.         <showName> <true /> </showName>
  310.         <highlight> <false /> </highlight>
  311.         <autoHighlight> <true /> </autoHighlight>
  312.         <sharedHighlight> <true /> </sharedHighlight>
  313.         <family>0</family>
  314.         <titleWidth>0</titleWidth>
  315.         <icon>0</icon>
  316.         <textAlign>center</textAlign>
  317.         <font>Chicago</font>
  318.         <textSize>12</textSize>
  319.         <textStyle>plain</textStyle>
  320.         <name>New Card</name>
  321.         <script>on mouseUp
  322. set lockscreen to true
  323. go to second card
  324. domenu copy card
  325. go to last card
  326. domenu paste card
  327. set lockscreen to false
  328. end mouseUp
  329. </script>
  330.     </part>
  331.     <part>
  332.         <id>29</id>
  333.         <type>button</type>
  334.         <visible> <true /> </visible>
  335.         <reserved5> 0 </reserved5>
  336.         <reserved4> 0 </reserved4>
  337.         <reserved3> 0 </reserved3>
  338.         <reserved2> 0 </reserved2>
  339.         <reserved1> 0 </reserved1>
  340.         <enabled> <true /> </enabled>
  341.         <rect>
  342.             <left>383</left>
  343.             <top>309</top>
  344.             <right>415</right>
  345.             <bottom>340</bottom>
  346.         </rect>
  347.         <style>transparent</style>
  348.         <showName> <false /> </showName>
  349.         <highlight> <false /> </highlight>
  350.         <autoHighlight> <true /> </autoHighlight>
  351.         <sharedHighlight> <true /> </sharedHighlight>
  352.         <family>0</family>
  353.         <titleWidth>0</titleWidth>
  354.         <icon>902</icon>
  355.         <textAlign>center</textAlign>
  356.         <font>Chicago</font>
  357.         <textSize>12</textSize>
  358.         <textStyle>plain</textStyle>
  359.         <name>New Button</name>
  360.         <script>on mousedown
  361. set hilite of target to false
  362. if field number=1 then
  363. beep
  364. answer "This is the first sound card"
  365. exit mousedown
  366. end if
  367. put field Playlist into TempPlayList
  368. visual scroll right very fast
  369. go prev
  370. put TempPlayList into field PlayList
  371. end mousedown
  372. </script>
  373.     </part>
  374.     <part>
  375.         <id>30</id>
  376.         <type>button</type>
  377.         <visible> <true /> </visible>
  378.         <reserved5> 0 </reserved5>
  379.         <reserved4> 0 </reserved4>
  380.         <reserved3> 0 </reserved3>
  381.         <reserved2> 0 </reserved2>
  382.         <reserved1> 0 </reserved1>
  383.         <enabled> <true /> </enabled>
  384.         <rect>
  385.             <left>450</left>
  386.             <top>308</top>
  387.             <right>482</right>
  388.             <bottom>339</bottom>
  389.         </rect>
  390.         <style>transparent</style>
  391.         <showName> <false /> </showName>
  392.         <highlight> <false /> </highlight>
  393.         <autoHighlight> <true /> </autoHighlight>
  394.         <sharedHighlight> <true /> </sharedHighlight>
  395.         <family>0</family>
  396.         <titleWidth>0</titleWidth>
  397.         <icon>26425</icon>
  398.         <textAlign>center</textAlign>
  399.         <font>Chicago</font>
  400.         <textSize>12</textSize>
  401.         <textStyle>plain</textStyle>
  402.         <name>New Button</name>
  403.         <script>on mousedown
  404. if (the number of this card) = (the number of last card-1) then
  405. beep
  406. answer "This is your last sound card"
  407. exit mousedown
  408. end if
  409. put field PlayList into TempPlayList
  410. visual scroll left very fast
  411. go next card
  412. put TempPlayList into field PlayList
  413. end mousedown
  414. </script>
  415.     </part>
  416.     <part>
  417.         <id>31</id>
  418.         <type>field</type>
  419.         <visible> <true /> </visible>
  420.         <dontWrap> <false /> </dontWrap>
  421.         <dontSearch> <false /> </dontSearch>
  422.         <sharedText> <false /> </sharedText>
  423.         <fixedLineHeight> <true /> </fixedLineHeight>
  424.         <autoTab> <false /> </autoTab>
  425.         <lockText> <true /> </lockText>
  426.         <rect>
  427.             <left>423</left>
  428.             <top>316</top>
  429.             <right>446</right>
  430.             <bottom>334</bottom>
  431.         </rect>
  432.         <style>opaque</style>
  433.         <autoSelect> <false /> </autoSelect>
  434.         <showLines> <false /> </showLines>
  435.         <wideMargins> <false /> </wideMargins>
  436.         <multipleLines> <false /> </multipleLines>
  437.         <reservedFamily> 0 </reservedFamily>
  438.         <titleWidth>0</titleWidth>
  439.         <icon>0</icon>
  440.         <textAlign>left</textAlign>
  441.         <font>Geneva</font>
  442.         <textSize>12</textSize>
  443.         <textStyle>bold</textStyle>
  444.         <textHeight>16</textHeight>
  445.         <name>number</name>
  446.         <script></script>
  447.     </part>
  448.     <part>
  449.         <id>32</id>
  450.         <type>button</type>
  451.         <visible> <true /> </visible>
  452.         <reserved5> 0 </reserved5>
  453.         <reserved4> 0 </reserved4>
  454.         <reserved3> 0 </reserved3>
  455.         <reserved2> 0 </reserved2>
  456.         <reserved1> 0 </reserved1>
  457.         <enabled> <true /> </enabled>
  458.         <rect>
  459.             <left>373</left>
  460.             <top>251</top>
  461.             <right>471</right>
  462.             <bottom>272</bottom>
  463.         </rect>
  464.         <style>transparent</style>
  465.         <showName> <true /> </showName>
  466.         <highlight> <false /> </highlight>
  467.         <autoHighlight> <true /> </autoHighlight>
  468.         <sharedHighlight> <true /> </sharedHighlight>
  469.         <family>0</family>
  470.         <titleWidth>0</titleWidth>
  471.         <icon>0</icon>
  472.         <textAlign>center</textAlign>
  473.         <font>Chicago</font>
  474.         <textSize>12</textSize>
  475.         <textStyle>plain</textStyle>
  476.         <name>Sound Studio</name>
  477.         <script>on mousedown
  478. visual scroll left very fast
  479. go card Studio
  480. end mousedown
  481. </script>
  482.     </part>
  483.     <name>Sounds Template</name>
  484.     <script>on mouseup
  485. global Record
  486. -- user has clicked outside of a button
  487. if (the short name of the target) is "sounds" then
  488. exit mouseup
  489. end if
  490. -- user has clicked an empty button
  491. if (the short name of the target) is space then
  492. choose button tool
  493. click at loc of target
  494. domenu "button info..."
  495. choose browse tool
  496. exit mouseup
  497. end if
  498. -- check if we are recording or playing
  499. if Record is empty then
  500. play (the short name of the target)
  501. exit mouseup
  502. else
  503. put "Play " after field PlayList
  504. put quote &(the short name of the target)& quote after field PlayList
  505. put return after field PlayList
  506. end if
  507. end mouseup
  508.  
  509. on closebackground
  510. set the name of background button id 22 to "Record"
  511. if field PlayList is not empty then
  512. answer "do you want to save your PlayList?" with "Cancel" or "OK"
  513. if it is "OK" then
  514. put NewFileName("Save PlayList As?","") inot ListName
  515. if ListName is not empty then
  516. open file ListName
  517. write field PlayList to file Listname
  518. close file ListName
  519. end if
  520. end if
  521. put "" into field PlayList
  522. end if
  523. end closebackground
  524.  
  525. on openbackground
  526. global record
  527. put "" into record
  528. end openbackground
  529. </script>
  530. </background>
  531.